package leetcode268

func missingNumber(nums []int) int {
	miss := len(nums)
	for i, num := range nums {
		miss ^= i ^ num
	}
	return miss
}
